home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / util / gnu / cvs-1.11.1p1.lha / source / lib / smakefile
Encoding:
Makefile  |  2001-07-22  |  2.5 KB  |  88 lines

  1. #
  2. # $Id$
  3. #
  4. # :ts=4
  5. #
  6. # AmigaOS wrapper routines for GNU CVS, using the AmiTCP V3 API
  7. # and the SAS/C V6.58 compiler.
  8. #
  9. # Written and adapted by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  10. #                        Jens Langner <Jens.Langner@htw-dresden.de>
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25. #
  26.  
  27. TARGET = cvs.lib
  28.  
  29. # Programs
  30.  
  31. CC  = sc
  32. OML = oml
  33. CP  = copy
  34. RM  = delete quiet
  35.  
  36. # ignored warnings are:
  37. #  51 C++ comment detected                                 -- we agreed to use them
  38. #  61 undefined struct/union tag "tag-name"                -- in include files
  39. # 120 Integral type mismatch: possible portability problem -- should be used somewhen
  40. # 148 use of incomplete struct/union/enum tag "name"       -- in include files
  41. # 165 use of narrow type in prototype                      -- very unlikely portability problem
  42. # 178 indirect call without indirection operator           -- only old-style support
  43. # 212 item "name" already declared                         -- in include files
  44. # 306 .. function inlined                                  -- disturbs
  45.  
  46. # Compiler/Linker flags
  47.  
  48. CPU      =  68020
  49. DEFS     =  DEFINE=HAVE_CONFIG_H
  50. WARN     =  WARN=ALL IGNORE=51,61,120,148,165,178,212,306
  51. INCDIRS  =  IDIR=/ IDIR=/lib IDIR=/src IDIR=/amiga/include IDIR=/amiga IDIR=/amiga/netinclude
  52. CFLAGS   =  OPT OPTTIME OPTSCHEDULE CPU=$(CPU) UTILLIB COMMENTNEST STRUCTUREEQUIVALENCE \
  53.             STRINGMERGE NOSTACKCHECK $(DEFS) $(WARN) $(INCDIRS) DEBUG=LINE
  54.  
  55. OBJS     =  argmatch.o getline.o getopt.o getopt1.o md5.o regex.o savecwd.o stripslash.o \
  56.             xgetwd.o yesno.o sighandle.o getdate.o fnmatch.o
  57.  
  58. #
  59.  
  60. default: $(TARGET)
  61.  
  62. # Default rule
  63.  
  64. .c.o:
  65.   @echo "*e[32mCompiling $*.c*e[0m"
  66.   @$(CC) $(CFLAGS) $<
  67.  
  68. #
  69.  
  70. $(TARGET): $(OBJS)
  71.   @echo "*e[32mLinking $@*e[0m"
  72.   @$(OML) $@ r $(OBJS)
  73.  
  74. # leaves TARGET
  75. clean:
  76.   -$(RM) $(OBJS)
  77.  
  78. #
  79. cleanall: clean
  80.   -$(RM) $(TARGET)
  81.  
  82. #
  83. fnmatch.o: fnmatch.h
  84. getopt1.o: getopt.h
  85. regex.o: regex.h
  86. md5.o: md5.h
  87.  
  88.